package cn.itsource.controller.app;

import cn.itsource.pojo.app.vo.LocationVo;
import cn.itsource.result.R;
import cn.itsource.service.IOrderService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 📖：beishan
 * 🗓️：2024/4/15 19:32
 * =====================
 */
@RestController
@RequestMapping("/app/order")
public class OrderSharedController {
    @Autowired
    private IOrderService orderService;

    @Operation( summary= "司乘同显",description = "司乘同显")
    @GetMapping("/location/{orderNo}")
    public R location(@PathVariable String orderNo){
        LocationVo locationVo = orderService.location(orderNo);
        return R.success(locationVo);
    }

}
